﻿@namespace MudBlazor.UnitTests.TestComponents

<MudDrawer @ref="@Drawer" @bind-Open="@_open" Variant="@Variant" Overlay="@Overlay" OverlayAutoClose="@OverlayAutoClose" ClipMode="@ClipMode"></MudDrawer>
<button @onclick="@HandleButtonClick" />

@code {
    private bool _open = false;

    public MudDrawer Drawer { get; set; }

    [Parameter]
    public DrawerVariant Variant { get; set; }

    [Parameter]
    public bool Overlay { get; set; } = true;

    [Parameter]
    public DrawerClipMode ClipMode { get; set; }

    [Parameter]
    public bool OverlayAutoClose { get; set; } = true;

    public void HandleButtonClick() => _open = !_open;
}
